﻿using Abc.Modules.Business.E.Views;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;

namespace Abc.Modules.Business.E
{
    public class ModuleE : IModule
    {

        #region PUBLIC PROPERTIES
        [Dependency]
        public IUnityContainer Container { set; get; }

        [Dependency]
        public IRegionManager RegionManager { get; set; }
        #endregion

        public void Initialize()
        {
            RegionManager.RegisterViewWithRegion("NavBarRegion", () => Container.Resolve<ModuleENavBar>());
            RegionManager.RegisterViewWithRegion("TabRegion", () => Container.Resolve<ModuleETabItem>());
            RegionManager.RegisterViewWithRegion("BarManagerRegion", () => Container.Resolve<ModuleEBarManager>());
        }
    }
}
